package com.jmp.api.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Builder;
import lombok.Data;

import java.util.List;

@Data
@Builder
public class SupplierWebsiteResponse {
    @ApiModelProperty("1图片（轮播，多张逗号分隔）")
    private String photos;

    @ApiModelProperty("公司简介")
    private String companyIntroduce;
    @ApiModelProperty("商品简介")
    private String goodsIntroduce;

    @ApiModelProperty(value = "主推商品（轮播）", dataType = "SupplierWebsiteResponse.Goods")
    private List<Goods> mainGoodsList;

    @ApiModelProperty(value = "视频列表", dataType = "SupplierWebsiteResponse.Video")
    private List<Video> companyVideoModelList;

    @ApiModelProperty("公司地址")
    private String address;
    @ApiModelProperty("公司地址:纬度")
    private String latitude;
    @ApiModelProperty("公司地址:经度")
    private String longitude;
    @ApiModelProperty("公司电话")
    private String phone;

    @ApiModel("SupplierWebsiteResponse.Goods")
    @Data
    @Builder
    public static class Goods {
        @ApiModelProperty("商品ID")
        private Integer goodsId;
        @ApiModelProperty("商品名称")
        private String name;
        @ApiModelProperty("商品图片")
        private String pic;
    }

    @ApiModel("SupplierWebsiteResponse.Video")
    @Data
    @Builder
    public static class Video {
        private String url;
        private String describes;
        private String cover;
    }
}
